
      setInterval(() => {
        let date = new Date()
        let year = date.getFullYear()
        let month = date.getMonth() + 1
        month = month < 10 ? '0' + month : month
        let day = date.getDate()
        day = day < 10 ? '0' + day : day
        let hour = date.getHours()
        let minute = date.getMinutes()
        minute = minute < 10 ? '0' + minute : minute
        let sconds = date.getSeconds()
        sconds = sconds < 10 ? '0' + sconds : sconds
        document.querySelector(
          '#box'
        ).innerHTML = `${year}-${month}-${day} ${hour}:${minute}:${sconds}`
      }, 1000)
    